package com.tq.teaching_quality.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 问卷分配，即把组好的问卷，分派给哪些教学班
 * </p>
 *
 * @author YTH
 * @since 2020-06-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SurveyAssign implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 问卷id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 学校id
     */
    private Long collegeId;

    /**
     * 学期id
     */
    private Long semesterId;

    /**
     * 第几周
     */
    private Integer week;

    /**
     * 问卷id
     */
    private Long surveyId;

    /**
     * 课程id
     */
    private Long courseId;

    /**
     * 授课班级id，关联到instruction_class.id
     */
    private Long instructionClassId;

    /**
     * 授课教师id，关联到employee.id
     */
    private Long teacherId;

    /**
     * 教师从全班同学得到的总得分
     */
    private Integer teacherScore;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 操作者
     */
    private Long byWho;

    /**
     * 本记录是否有效
     */
    @TableLogic
    private Boolean deleted;

    /**
     * 历史版本
     */
    private Long lastVersion;


}
